package com.ai.bitcoin.jpa.service;

import com.ai.bitcoin.jpa.entity.BccIndexInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author Jason
 * @date 2018/4/11
 **/
public interface BccIndexInfoService {
    Page<BccIndexInfo> findByBccIdAndBatchNo(String bccId, String batchNo, Pageable pageable);

    List<BccIndexInfo> findByBccIdAndBatchNo(String bccId, String batchNo);

    BccIndexInfo save(BccIndexInfo bccIndexInfo);

    List<BccIndexInfo> findByBccIdAndIndexTitleYesterday(String bccId, String indexTitle);

    List<BccIndexInfo> findByBccIdAndRecordState(String bccId, String recordState);

    void updateRank(String unPublishBatchNo);

    Page<BccIndexInfo> findByRecordState(String recordState, Pageable pageable);

    void deleteNoPublish();

    List<BccIndexInfo> findByBatchNo(String batchNo);

    List<BccIndexInfo> findByBatchNoAndIndexTitle(String batchNo, String indexTitle);


}
